<?$this->_extends("_layouts/index_layout");?>
<?$this->_block("contents");?>

<div class="main border1 mt10 line30"><span class="color2 ml10">您现在的位置：</span><a href="<?php echo url('index');?>">首页</a> <?php echo $location;?></div>
<div class="main mt10">
  <div class="border width690_list fleft">
    <div class="title"><?php echo $news['title'];?></div>
    <div class="color4 line30 center">时间：<?php echo date('Y-m-d', $news['release_date']);?> 点击数：<?php echo $news['hits'];?></div>
    <div class="color5 mt20 mb20 ml10 mr10"> <?php echo stripslashes($news['content']);?>
      <?php 
	  //print_r($enclosure);
	  if(!empty($enclosure)){?>
      <div>
        <?php
	   $count = 0;
       foreach($enclosure as $k => $v){
			$file_name = explode('.',$v['name']); 
			$count ++;  
		?>
        <p> 附件<?php echo $count;?>：<a href="<?php echo $_BASE_DIR.$v['path']?>" target="_blank" title="点击下载附件"><?php echo $file_name[0];?></a> </p>
        <?php }?>
      </div>
      <?php }?>
    </div>
    <div class="color4 ml20 fleft mb20">
    <?php
    	if(!empty($proData)){
			echo '上一篇：<a href="'.url('/noticeread', array('newsid'=>$proData['id'])).'" title="'.$proData['title'].'">'.Helper_Util::utfSubStr(stripslashes($proData['title']),46,'').'</a>';	
		}
	?>
    </div>
    <div class="color4 mr20 fright mb20">
    <?php
    	if(!empty($nextData)){
			echo '下一篇：<a href="'.url('/noticeread', array('newsid'=>$nextData['id'])).'" title="'.$nextData['title'].'">'.Helper_Util::utfSubStr(stripslashes($nextData['title']),46,'').'</a>';	
		}
	?>
    </div>
    <div class="clear"></div>
  </div>
  <div class="border width280 fright">
    <div class="cbtitle color1">重要公告</div>
    <ul class="xw">
      <?php 
	  	$count = 0;
		foreach ($notice_list_recommend as $row) {
			$li_class = '';
			if($count % 2){
				$li_class = ' class="colorbg2"';	
			}
			$count ++;	
		?>
        
      <li <?php echo $li_class;?>><a href="<?=url('/noticeread', array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes($row['title']),30,'');?></a> <span><?php echo date('Y-m-d', $row['release_date']);?></span><br/>
      </li>
      <?php }?>
    </ul>
  </div>
  <div class="border width280 fright mt10">
    <div class="cbtitle color1">热点公告</div>
    <ul class="xw">
      <?php 
	  $count = 0;
	  foreach ($notice_list_hot as $row) {
			$li_class = '';
			if($count % 2){
				$li_class = ' class="colorbg2"';	
			}
			$count ++;  
		  ?>
      <li <?php echo $li_class;?>><a href="<?=url('/noticeread', array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes($row['title']),30,'');?></a> <span><?php echo date('Y-m-d', $row['release_date']);?></span><br/>
      </li>
      <?php }?>
    </ul>
  </div>
  <div class="clear"> </div>
</div>
<?$this->_endblock();?>
